package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.ApplyInfoBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplyInfoBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ApplyInfoBean record);

    ApplyInfoBean selectByPrimaryKey(Integer id);

    List<ApplyInfoBean> selectAll();

    List<ApplyInfoBean> selectByOpenIdAndType(@Param("openId") String openId, @Param("type") Integer type);

    int deleteByOpenIdAndType(@Param("openId") String openId, @Param("type") Integer type);

    List<ApplyInfoBean> selectByPaySeq(@Param("paySeq") String paySeq);

    int updateByPrimaryKey(ApplyInfoBean record);

    List<ApplyInfoBean> listApplyInfoBean(Page<ApplyInfoBean> page, @Param("applyInfoBean") ApplyInfoBean applyInfoBean);

    int updatePayStatusByPaySeq(@Param("isPay")int isPay,@Param("payMoney")int payMoney,@Param("paySeq")String paySeq);
}